package com.d3works.apps.base.web;

import com.d3works.apps.base.service.PaymentModeService;
import com.d3works.exception.service.TraceBackService;
import com.d3works.inject.Beans;
import com.d3works.rpc.ActionRequest;
import com.d3works.rpc.ActionResponse;

public class PaymentModeController {

  public void setDefaults(ActionRequest request, ActionResponse response) {
    try {
      response.setValue(
          "accountManagementList",
          Beans.get(PaymentModeService.class).getAccountManagementDefaults());
    } catch (Exception e) {
      TraceBackService.trace(response, e);
    }
  }
}
